<link rel="stylesheet" href="__STATIC__/css/pccomment.css?s"> 
<div class="WapCommentBox">
	<ul class="PostCommentBox1">
		<ol><i class="fa fa-edit"></i><textarea placeholder="发布您的精彩评论"></textarea></ol>
		<li><button type="butter" onclick="post_commentPc()">发表</button></li>		
	</ul>
	<div class="head">
		<div class="tag">全部评论({$total})</div>
	</div>
	<div class="ListComment">
		{volist name="listdb" id="rs"}
		<ul class="lists" id="comment_cnt_{$rs.id}">
			<ol class="icon"><a href="{:get_url('user',$rs.uid)}" target="_blank"><img src="{$rs.icon}" onerror="this.src='__STATIC__/images/nobody.gif'"/></a></ol>
			<li class="infos">
				<dl>
					<dt><a href="{:murl('member/msg/add',['uid'=>$rs.uid])}" class="_pop">{$rs.username}</a> <span>{$rs.time}</span></dt>
					<dd>
						<em onclick="dingcomment({$rs.id})"><i class="si si-like"></i> <a class="agree{$rs.id}">{$rs.agree}</a></em>
						<span onclick="post_comment({$rs.id})"><i class="fa fa-commenting-o"></i> 回复</span>
						{if fun('Admin@sort',$info.fid)||fun('Admin@status_power')}<span onclick="yz_comment({$rs.id},$(this))"  class="comment_if_yz {$rs.status==0?'notyz':''}"><a href="javascript:"><i class=" fa fa-ban"></i></a></span>{/if}
						{if $rs.uid==login_user('uid')||fun('Admin@sort',$info.fid)}<span onclick="del_comment({$rs.id})"><a href="javascript:"><i class="fa fa-close"></i> 删除</a></span>{/if}

					</dd>
				</dl>
				<div class="comment">{$rs.content}</div>				
				<div class="repalyinfs repalyinfs{$rs.id}">
					{volist name="rs.children" id="vo"}
					<div id="comment_cnt_{$vo.id}">
						<a href="{:get_url('user',$vo.uid)}" target="_blank">{$vo.username|default='游客'}：</a>
						{$vo.content} 
						
						{if $vo.uid==login_user('uid')||fun('Admin@sort',$info.fid)}<span onclick="del_comment({$vo.id})" style="float:right;"><a href="javascript:"><i class="fa fa-close"></i> 删除</a></span>{/if}

						{if fun('Admin@sort',$info.fid)||fun('Admin@status_power')}<span onclick="yz_comment({$vo.id},$(this))" style="float:right;" class="comment_if_yz {$vo.status==0?'notyz':''}"><a href="javascript:"><i class=" fa fa-ban"></i></a></span>{/if}
					</div>
					{/volist}
				</div>
			</li>
		</ul>
		{/volist}
	</div>
	<div class="ShowMoreComment"><button type="butter" onclick="ShowMoreComment()">更多评论 <i class="fa fa-angle-double-down"></i></button></div>
</div>

<script type="text/javascript" src="__STATIC__/libs/tncode/tn_code.js?wf4"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/libs/tncode/tn_code.css?4d"/>

<script type="text/javascript">
var comment_post_url,comment_base_url;
	comment_post_url=comment_base_url="{posturl}";
var repalyid=0;
var commentpage=1;

var comment_delete_url = "{:purl('comment/api/delete')}";

var needTncode = {:in_array($userdb['groupid'], $webdb['group_reply_need_tncode'])?'true':'false'};	//是否需要行为验证码
var cache_need_tncode = needTncode;
	
var comment_page_url = "{pageurl}";
var comment_rows = parseInt("{$cfg_array.rows}");

var comment_yz_url = "{:purl('comment/api/yz')}";
</script>
<script type="text/javascript" src="__STATIC__/js/comment/pc.js"></script>